package com.gy.service;

import com.gy.mapper.NoticeMapper;
import com.gy.pojo.Notice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.naming.Name;
import java.util.List;

@Service
public class NoticeServiceImpl implements NoticeService {
    @Autowired
    NoticeMapper noticeMapper;


    @Override
    public void addNT(String Nname,String Ntite,String Ntext) {
        noticeMapper.addNT(Nname,Ntite,Ntext);
    }

    @Override
    public void deleteNTByID(int Nid) {
        noticeMapper.deleteNTByID(Nid);
    }

    @Override
    public List<Notice> selectNT() {
        return noticeMapper.selectNT();
    }

    @Override
    public Notice selectNTByid(int Nid) {
        return noticeMapper.selectNTByid(Nid);
    }
}
